package cc.uncarbon.module.appapi.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 后台管理-新增/编辑数据表注释 DTO
 */
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class BookCategoryInsertOrUpdateDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "主键ID", hidden = true, title = "仅更新时使用")
    private Long id;

    @Schema(description = "名称")
    @Size(max = 255, message = "【名称】最长255位")
    @NotBlank(message = "【名称】不能为空")
    private String name;

    @Schema(description = "收支类型(0支出，1收入）")
    private Integer orderType;

    @Schema(description = "图标名称")
    @Size(max = 255, message = "【图标名称】最长255位")
    @NotBlank(message = "图标名称不能为空")
    private String icon;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "")
    @Size(max = 255, message = "【】最长255位")
    private String remark;

}
